package com.spring.shops.dao;

import com.spring.shops.model.entity.TzTransfee;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TzTransfeeMapper {
    int deleteByPrimaryKey(Long transfeeId);

    int insert(TzTransfee record);

    int insertSelective(TzTransfee record);

    TzTransfee selectByPrimaryKey(Long transfeeId);

    int updateByPrimaryKeySelective(TzTransfee record);

    int updateByPrimaryKey(TzTransfee record);

    /**
     * 根据运费模板id获取所有的运费项
     * @param id
     * @return
     */
    @Select("select * from yami_shops.tz_transfee where transport_id=#{id}")
    List<TzTransfee> selectByTransId(Long id);
}